package com.xsr;

import com.xsr.dao.BookDao;
import com.xsr.dao.impl.BookDaoImpl;
import com.xsr.service.ServiceDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 邢式瑞
 * @version 1.0
 * @project spring01
 * @date 2022/8/20 15:48
 */
public class App  {
    public static void main(String[] args) {
        ApplicationContext ctx= new ClassPathXmlApplicationContext("applicationContext.xml");

        BookDao bookDao = (BookDao)ctx.getBean("bookDao");
       ServiceDao  bookService = (ServiceDao)ctx.getBean("bookService");
       bookService.show();
    }
}
